package org.zmhhxl.samples3.resource.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.gateway.config.GatewayAutoConfiguration;
import org.springframework.cloud.gateway.config.GatewayClassPathWarningAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
//import org.zmhhxl.samples3.resource.gateway.advice.GlobalExceptionHandlerProperties;

/**
 * Hello world!
 *
 */
@SpringBootApplication
//@SpringBootApplication(exclude = {GatewayAutoConfiguration.class, GatewayClassPathWarningAutoConfiguration.class})
//@EnableConfigurationProperties({GlobalExceptionHandlerProperties.class})
public class Samples3ResourceGatewayApplication
{
    public static void main( String[] args )
    {   ConfigurableApplicationContext run = SpringApplication.run(Samples3ResourceGatewayApplication.class, args);

        // 查看 Environment
        Environment environment = run.getEnvironment();
        //断点调试查看environment对象
        System.out.println( "Hello World! resource gateway server started" );
    }
}
